import request from "/@/utils/request"

export function fetchList(query?: Object) {
  console.log('请求参数:', query); // 打印请求参数
  return request({
    url: '/qc/carOrder/page',
    method: 'get',
    params: query

  })
}

export function addObj(obj?: Object) {
  return request({
    url: '/qc/carOrder',
    method: 'post',
    data: obj
  })
}
export function cusName() {
  return request({
    url: '/qc/carOrder/customer',
    method: 'get',
  })
}
export function  carCode(){
  return request({
    url: '/qc/carOrder/carCode',
    method: 'get',
  })
}
//根据客户id获取订单分页列表
export function getOrderByCustomerId(object?:object){
  return request({
    url:'/qc/carOrder/route/',
    method:'get',
    data:object
  })
}







